#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
//(size_t)& ((test*)0)->a
#define offsetof(type,member) (size_t)&(((type*)0)->member)
struct test {
	int a;
	int b;
	char c;

}t;
int main() {
	printf("%u", offsetof(test,c));
}